package com.TLLT.QADMobileItemEnquiry;

import java.util.Hashtable;

import org.ksoap2.serialization.KvmSerializable;
import org.ksoap2.serialization.PropertyInfo;


public class ReportClass implements KvmSerializable
{
    public String Barcode;
    public String Description;
    public String ProductLine;
    public String ItemType;
    public String LotSerial;
    public String Reference;
    public String Location;
    public String Qantity;
    
    public ReportClass(){}
    

    public ReportClass(String barcode, String description, String productline, String itemtype, String lotserial, String reference, String location, String quantity) {
        
    	Barcode = barcode;
    	Description = description;
    	ProductLine = productline;
    	ItemType=itemtype;
    	LotSerial=lotserial;
    	Reference=reference;
    	Location=location;
    	Qantity=quantity;
    }


    public Object getProperty(int arg0) {
        
        switch(arg0)
        {
        case 0:
            return Barcode;
        case 1:
            return Description;
        case 2:
            return ProductLine;
        case 3:
            return ItemType;
        case 4:
            return LotSerial;
        case 5:
            return Reference;
        case 6:
            return Location;
        case 7:
            return Qantity;
        }
        
        return null;
    }

    public int getPropertyCount() {
        return 8;
    }

    public void getPropertyInfo(int index, Hashtable arg1, PropertyInfo info) {
        switch(index)
        {
        case 0:
            info.type = PropertyInfo.STRING_CLASS;
            info.name = "Barcode";
            break;
        case 1:
            info.type = PropertyInfo.STRING_CLASS;
            info.name = "Description";
            break;
        case 2:
            info.type = PropertyInfo.STRING_CLASS;
            info.name = "ProductLine";
            break;
        case 3:
            info.type = PropertyInfo.STRING_CLASS;
            info.name = "ItemType";
            break;
        case 4:
            info.type = PropertyInfo.STRING_CLASS;
            info.name = "LotSerial";
            break;
        case 5:
            info.type = PropertyInfo.STRING_CLASS;
            info.name = "Reference";
            break;
        case 6:
            info.type = PropertyInfo.STRING_CLASS;
            info.name = "Location";
            break;
        case 7:
            info.type = PropertyInfo.STRING_CLASS;
            info.name = "Qantity";
            break;
        default:break;
        }
    }

    public void setProperty(int index, Object value) {
        switch(index)
        {
        case 0:
        	Barcode = value.toString();
            break;
        case 1:
        	Description = value.toString();
            break;
        case 2:
        	ProductLine = value.toString();
            break;
        case 3:
        	ItemType = value.toString();
            break;
        case 4:
        	LotSerial = value.toString();
            break;
        case 5:
        	Reference = value.toString();
            break;
        case 6:
        	Location = value.toString();
            break;
        case 7:
        	Qantity = value.toString();
            break;
        default:
            break;
        }
    }
}